import random
count = 5
win = 0
lose =0
scissorrockFive = ["剪刀","石头","布"]
while count!=0:
    robot = random.choice(scissorrockFive)
    tyf = input("请出拳:")
    if tyf == robot:
        print("平局！两个憨憨")
    elif tyf =="剪刀" and robot == "石头":
        print("你输了！哈哈哈")
        count -=1
        lose +=1
    elif tyf == "剪刀" and robot =="布":
        print("你赢了！")
        win +=1
        count -=1
    elif tyf == "石头" and robot =="布":
        print("你输了！哈哈哈")
        count -= 1
        lose += 1
    elif tyf == "石头" and robot =="剪刀":
        print("你赢了！")
        win += 1
        count -= 1
    elif tyf == "布" and robot == "石头":
        print("你赢了！")
        win += 1
        count -= 1
    elif tyf == "布" and robot == "剪刀":
        print("你输了！哈哈哈")
        count -=1
        lose += 1

if win>=3:
    print("你赢了",win,"局")
if lose>=3:
    print("你输了！杂鱼，一共输了",lose,"局")
